const uint8_t LEDPin=3;
void setup() {
  // put your setup code here, to run once:
  pinMode(LEDPin,OUTPUT);
  digitalWrite(LEDPin,LOW);
  Serial.begin(9600);
  Serial.println("Start Connection");
}
int sleep=10;
void loop() {
  // put your main code here, to run repeatedly:

  if (Serial.available()>0)
  {
    int nowdata=Serial.read();
    if(nowdata!='\n')sleep=nowdata-'0';
    Serial.println(sleep);
  }
  digitalWrite(LEDPin,HIGH);
  delay(sleep*100);
  digitalWrite(LEDPin,LOW);
  delay(sleep*100);
}
